package com.leng.record.controller;
import com.leng.common.entity.TransactionRecord;
import com.leng.common.response.Result;
import com.leng.record.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 *@作者: 冷俊杰
 *@类名: RecordController类
 *@创建时间: 2022/9/28 15:58
 *@描述:
 *
 *
 *@修改原图
 *@修改作者
 *@修改时间
 */
@RestController
public class RecordController {
    @Autowired
    private RecordService service;

    @GetMapping("getRecordList")
    public Result getRecordList(){
        List<TransactionRecord> list = service.list();
        return Result.ok().data("Records",list);
    }
}
